<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
        <p>{{fn()}}</p>
    </div>
    <script src="./node_modules/vue/dist/vue.js"></script>
    <script>
      var vm = new Vue({
        el: '#app',
        data: {
            a:100 
        },
        methods: {
            fn(){
                return 200
            }
        },
      })


      // var obj = {}//字面量的写法
      // var obj = new Object()//标准的写法


      // var arr = []//字面量写法
      // var arr = new Array()//标准的写法

      var reg = /abc/gi //字面量写法
      // var reg = new RegExp('abc','gi')//标准的写法



    </script>
  </body>
</html>
